$(function(){
	$(".sbox_photo .addalbumsel .tag_select").click(function(){
			var picType = $(this).attr("picType");
			var picproId = $(this).attr("picproId");
			$.post("checkLogin.htm",function(data){
				if(data=='logged'){
					GUOGUO.joinPictorial(picproId,picType);
				}else{
					GUOGUO.memberLogin();
				}
			});
			
			return false;
		});
	
	$(".add_to_album_btn").parent().hover(function(){
		$(this).find(".add_to_album_btn").show();
	},function(){
		$(this).find(".add_to_album_btn").hide();
	});
	
	$(".add_to_album_btn").click(function(){
		if(GUOGUO.checkLogin()){
			var picType = $(this).attr("picType");
			var picproId = $(this).attr("picproId");
			GUOGUO.joinPictorial(picproId,picType);
		}else{
			GUOGUO.memberLogin();
		}
	});
});
